<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>
  <head>
    <title>ocamljs 0.1 - install</title>
  </head>
  <body>

<h3>Installing ocamljs</h3>

<ol>
  <li>Install OCaml 3.10.0.</li>
  <li>Unpack the OCaml 3.10.0 distribution and run ./configure only,
      with the same options you gave when you built OCaml, then symlink
      it to ocamljs-0.1/ocaml.</li>
  <li>'make' builds ocamljs and the standard library</li>
  <li>'make test' runs the test suite; you will need SpiderMonkey or
      other Javascript interpreter</li>
  <li>'make install' installs ocamljs and the standard library</li>
</ol>

<h3>Using ocamljs</h3>

<p>The command 'ocamljs' may be used just like ocamlc or ocamlopt. It
generates .cmjs/.cmjsa files instead of .cmo/.cma. A linked file
consists of Javascript source, which may be run through a standalone
Javascript interpreter, or embedded in a web page or Firefox
extension.<p>

<p>See myocamlbuild.ml for some ocamlbuild rules you may find
useful.</p>

</body>
</html>
